import request from '../utils/request'
// 添加产品类型
export function umsThirdUserlogin (obj) {
  return request({
    url: '/ums/umsThirdUser/console/login',
    method: 'post',
    data: obj
  })
}
// 添加产品类型
export function productTypeCreate (obj) {
  return request({
    url: '/product/productType/create',
    method: 'post',
    data: obj
  })
}
// list
export function productTypeList (obj) {
  return request({
    url: '/product/productType/list',
    method: 'post',
    data: obj
  })
}
export function productTypeUpdate (obj, id) {
  return request({
    url: `/product/productType/update/${id}`,
    method: 'post',
    data: obj
  })
}
export function productTypeDelete (id) {
  return request({
    url: `/product/productType/delete/${id}`,
    method: 'post',
    data: ''
  })
}
export function productTypeDeleteBatch (val) {
  return request({
    url: '/product/productType/deleteBatch',
    method: 'post',
    data: val
  })
}
// 商品信息字典
export function searchProductDic (val) {
  return request({
    url: '/product/product/searchProductDic',
    method: 'post',
    data: val
  })
}
// shopList
export function shopLIst (val) {
  return request({
    url: '/product/productMerge/search',
    method: 'post',
    data: val
  })
}

// 类型下拉
export function getWarehouseTypeDownList (val) {
  return request({
    url: '/warehouse/warehouse/getWarehouseTypeDownList',
    method: 'get',
    data: val
  })
}
// 仓库列表
export function warehouseList (val) {
  return request({
    url: '/warehouse/warehouse/list',
    method: 'post',
    data: val
  })
}
// 快递类型来源下拉列表
export function getExpressTypeList (val) {
  return request({
    url: '/warehouse/warehouseExpress/getExpressTypeList',
    method: 'get',
    data: val
  })
}
// 仓库支持商铺快递平铺列表
export function warehouseExpressList (val) {
  return request({
    url: '/warehouse/warehouseExpress/list',
    method: 'post',
    data: val
  })
}
// 仓库支持快递保存
export function warehouseExpressCreate (val) {
  return request({
    url: '/warehouse/warehouseExpress/create',
    method: 'post',
    data: val
  })
}
export function getShopExpressTypeId (val) {
  return request({
    url: '/warehouse/warehouseExpress/getShopExpressTypeId',
    method: 'post',
    data: val
  })
}
// 省市联动
export function sysPcaDataList (parentId) {
  return request({
    url: `/config/sysPcaData/list?parentId=${parentId}`,
    method: 'get'
    // data: val
  })
}
// 删除仓库
export function warehouseDelete (val) {
  return request({
    url: '/warehouse/warehouse/delete',
    method: 'post',
    data: val
  })
}
// 仓库类型
export function warehouseTypeSet (val) {
  return request({
    url: '/warehouse/warehouseType/create',
    method: 'post',
    data: val
  })
}
export function warehouseTypePage (val) {
  return request({
    url: '/warehouse/warehouseType/list',
    method: 'get',
    data: val
  })
}
export function warehouseTypeupdate (val) {
  return request({
    url: '/warehouse/warehouseType/update',
    method: 'post',
    data: val
  })
}
export function productMergeWarehouseSearch (val) {
  return request({
    url: `/product/productMerge/warehouseSearch/${val}`,
    method: 'post',
    data: val
  })
}
export function productMergeWarehouseSave (productId, val) {
  return request({
    url: `/product/productMerge/warehouseSave/${productId}`,
    method: 'post',
    data: val
  })
}
export function productMergeWarehouseCanUseSearch (val) {
  return request({
    url: `/product/productMerge/warehouseCanUseSearch/${val}`,
    method: 'post',
    data: val
  })
}
// 删
export function warehouseDeleteType (val) {
  return request({
    url: '/warehouse/warehouseType/delete',
    method: 'post',
    data: val
  })
}
export function productMergeLogsearch (val) {
  return request({
    url: '/product/productMergeLog/search',
    method: 'post',
    data: val
  })
}
export function listByProductMergeLogId (productMergeLogId, val) {
  return request({
    url: `/product/productMergeLogProduct/listByProductMergeLogId/${productMergeLogId}`,
    method: 'post',
    data: val
  })
}
export function warehouseUpdate (val) {
  return request({
    url: '/warehouse/warehouse/update',
    method: 'post',
    data: val
  })
}
export function getWarehouseDownList (val) {
  return request({
    url: '/warehouse/warehouseArea/getWarehouseDownList',
    method: 'get',
    data: val
  })
}
export function getWarehouseAreaDownList (val) {
  return request({
    url: `/warehouse/warehouseArea/getWarehouseAreaDownList?warehouseId=${val}`,
    method: 'get',
    data: val
  })
}
export function warehouseAreaCreate (val) {
  return request({
    url: '/warehouse/warehouseArea/create',
    method: 'post',
    data: val
  })
}
export function warehouseArealist (val) {
  return request({
    url: '/warehouse/warehouseArea/list',
    method: 'post',
    data: val
  })
}
export function warehouseAreaupdate (val) {
  return request({
    url: '/warehouse/warehouseArea/update',
    method: 'post',
    data: val
  })
}
export function warehouseAreadelete (val) {
  return request({
    url: '/warehouse/warehouseArea/delete',
    method: 'post',
    data: val
  })
}
export function getExportUnitList (val) {
  return request({
    url: '/template/templateInfo/getExportUnitList',
    method: 'get',
    data: val
  })
}
export function warehouseLocationlist (val) {
  return request({
    url: '/warehouse/warehouseLocation/list',
    method: 'post',
    data: val
  })
}
export function warehouseLocationcreate (val) {
  return request({
    url: '/warehouse/warehouseLocation/create',
    method: 'post',
    data: val
  })
}
export function warehouseLocationdetail (val) {
  return request({
    url: '/warehouse/warehouseLocation/detail',
    method: 'post',
    data: val
  })
}
export function warehouseLocationupdate (val) {
  return request({
    url: '/warehouse/warehouseLocation/update',
    method: 'post',
    data: val
  })
}
export function inventoryList (val) {
  return request({
    url: '/inventory/inventory/list',
    method: 'post',
    data: val
  })
}
// 快递
export function expressShopList (val) {
  return request({
    url: '/express/shop/list',
    method: 'post',
    data: val
  })
}
export function shopExpresslist (val) {
  return request({
    url: '/express/shopExpress/list',
    method: 'post',
    data: val
  })
}
export function shopDelete (val) {
  return request({
    url: '/express/shop/delete',
    method: 'post',
    data: val
  })
}
export function shopExpressDelete (val) {
  return request({
    url: '/express/shopExpress/delete',
    method: 'post',
    data: val
  })
}
export function updateIsCheck (val) {
  return request({
    url: '/express/shopExpress/updateIsCheck',
    method: 'post',
    data: val
  })
}
export function shopExpressdetail (val) {
  return request({
    url: '/express/shopExpress/detail',
    method: 'post',
    data: val
  })
}
export function shopExpressupdate (val) {
  return request({
    url: '/express/shopExpress/update',
    method: 'post',
    data: val
  })
}
export function shopExpresscreate (val) {
  return request({
    url: '/express/shopExpress/create',
    method: 'post',
    data: val
  })
}
export function inventorycreate (val) {
  return request({
    url: `inventory/inventory/create/${val.warehouseId}`,
    method: 'post',
    data: val.integers
  })
}
export function inventoryDelect (val) {
  return request({
    url: `/inventory/inventory/cancel/${val.inventoryId}`,
    method: 'post'
    // data: val
  })
}
export function creatInventoryDic (val) {
  return request({
    url: `/inventory/inventory/creatInventoryDic/${val.warehouseId}`,
    method: 'post'
    // data: val
  })
}
export function searchInventoryDic (val) {
  return request({
    url: '/inventory/inventory/searchInventoryDic',
    method: 'post'
    // data: val
  })
}
export function assignmentDic (val) {
  return request({
    url: `/inventory/inventory/assignmentDic/${val}`,
    method: 'post'
    // data: val
  })
}
export function inventoryassignment (val) {
  return request({
    url: `/inventory/inventory/assignment/${val.inventoryId}`,
    method: 'post',
    data: val.inventoryAssignmentParam
  })
}
export function listSubWarehouseLocation (val) {
  return request({
    url: `/inventory/inventory/listSubWarehouseLocation/${val}`,
    method: 'post',
    data: val.inventoryAssignmentParam
  })
}
export function inventoryMoveOrderlist (val) {
  return request({
    url: '/inventory/inventoryMoveOrder/list',
    method: 'post',
    data: val
  })
}
export function searchInventoryMoveOrderDic (val) {
  return request({
    url: '/inventory/inventoryMoveOrder/searchInventoryMoveOrderDic',
    method: 'post',
    data: val
  })
}
export function handleSubMoveOrder (val) {
  return request({
    url: '/inventory/inventoryMoveOrder/handleSubMoveOrder',
    method: 'post',
    data: val
  })
}
export function procurementPlatformDic (val) {
  return request({
    url: '/procurement/procurementAccount/procurementPlatformDic',
    method: 'post',
    data: val
  })
}
export function procurementAccountStatusDic (val) {
  return request({
    url: '/procurement/procurementAccount/procurementAccountStatusDic',
    method: 'post',
    data: val
  })
}
export function procurementPlatformCreate (val) {
  return request({
    url: '/procurement/procurementPlatform/create',
    method: 'post',
    data: val
  })
}
export function procurementPlatformlist (val) {
  return request({
    url: '/procurement/procurementPlatform/list',
    method: 'post',
    data: val
  })
}
export function procurementPlatformRemove (val) {
  return request({
    url: `/procurement/procurementPlatform/remove/${val}`,
    method: 'post'
    // data: val
  })
}
export function procurementAccountStatuscreate (val) {
  return request({
    url: '/procurement/procurementAccountStatus/create',
    method: 'post',
    data: val
  })
}
export function procurementAccountStatuslist (val) {
  return request({
    url: '/procurement/procurementAccountStatus/list',
    method: 'post',
    data: val
  })
}
export function procurementAccountStatusremove (val) {
  return request({
    url: `/procurement/procurementAccountStatus/remove/${val}`,
    method: 'post',
    data: val
  })
}
export function procurementAccountStatusupdateRemark (id, val) {
  return request({
    url: `/procurement/procurementAccountStatus/updateRemark/${id}`,
    method: 'post',
    data: val
  })
}
export function procurementAccountStatusupdateSyncStatus (id, val) {
  return request({
    url: `/procurement/procurementAccountStatus/updateSyncStatus/${id}`,
    method: 'post',
    data: val
  })
}
export function procurementAccountlist (val) {
  return request({
    url: '/procurement/procurementAccount/list',
    method: 'post',
    data: val
  })
}
export function procurementAccountremove (val) {
  return request({
    url: '/procurement/procurementAccount/remove',
    method: 'post',
    data: val
  })
}
export function procurementAccountUpdateType (val) {
  return request({
    url: '/procurement/procurementAccount/updateType',
    method: 'post',
    data: val
  })
}
export function procurementAccountupdateOfflineNotice (val) {
  return request({
    url: '/procurement/procurementAccount/updateOfflineNotice',
    method: 'post',
    data: val
  })
}
export function procurementAccountexport (val) {
  return request({
    url: '/procurement/procurementAccount/export',
    method: 'post',
    data: val
  })
}
export function procurementAccountdownload (val) {
  return request({
    url: `/procurement/procurementAccount/download${val}`,
    method: 'get'
    // data: val
  })
}
export function productPurchaseStorageSearchWarehouseDic (val) {
  return request({
    url: '/product/productPurchaseOrder/searchWarehouseDic',
    method: 'post',
    data: val
  })
}
export function productPurchaseOrderList (val) {
  return request({
    url: '/product/productPurchaseOrder/list',
    method: 'post',
    data: val
  })
}
export function productPurchaseOrderSearchUserAdminDic (val) {
  return request({
    url: '/product/productPurchaseOrder/searchUserAdminDic',
    method: 'post',
    data: val
  })
}
export function productPurchaseOrderOrderAudit (val, obj) {
  return request({
    url: `/product/productPurchaseOrder/orderAudit/${val}`,
    method: 'post',
    data: obj
  })
}
export function procurementAccountUpdate (val, obj) {
  return request({
    url: `/procurement/procurementAccount/update/${val}`,
    method: 'post',
    data: obj
  })
}
export function productPurchaseOrderListSubOrder (val, obj) {
  return request({
    url: `/product/productPurchaseOrder/listSubOrder/${val}`,
    method: 'post',
    data: obj
  })
}
export function productPurchaseProcessCreatePurchaseProcess (val, obj) {
  return request({
    url: '/product/productPurchaseProcess/createPurchaseProcess',
    method: 'post',
    data: val
  })
}
export function productPurchaseProcessCreatePurchaseProcessDic (val, obj) {
  return request({
    url: '/product/productPurchaseProcess/createPurchaseProcessDic',
    method: 'post',
    data: obj
  })
}
export function preSaleOrderList (val) {
  return request({
    url: '/order/preSaleOrder/list',
    method: 'post',
    data: val
  })
}
export function preSaleOrdergetOrderTypeList (val, obj) {
  return request({
    url: '/order/preSaleOrder/getOrderTypeList',
    method: 'get',
    data: obj
  })
}
export function getOrderPlatformList (val, obj) {
  return request({
    url: '/order/preSaleOrder/getOrderPlatformList',
    method: 'get',
    data: obj
  })
}
export function getCompanyList (val, obj) {
  return request({
    url: '/order/preSaleOrder/getCompanyList',
    method: 'get',
    data: obj
  })
}
export function preSaleOrderApprove (val) {
  return request({
    url: '/order/preSaleOrder/approve',
    method: 'post',
    data: val
  })
}
export function productReturnedStorageList (val) {
  return request({
    url: '/product/productReturnedStorage/list',
    method: 'post',
    data: val
  })
}
export function productReturnedStorageSearchDic (val) {
  return request({
    url: '/product/productReturnedStorage/productReturnedStorageSearchDic',
    method: 'post',
    data: val
  })
}
export function productPurchaseOrdercreate (val) {
  return request({
    url: '/product/productPurchaseOrder/create',
    method: 'post',
    data: val
  })
}
export function productPurchaseProceslist (val) {
  return request({
    url: '/product/productPurchaseProcess/list',
    method: 'post',
    data: val
  })
}
export function productGearCanUseList (val) {
  return request({
    url: '/product/productGear/canUseList',
    method: 'post',
    data: val
  })
}
export function createPurchaseCustomerDic (val) {
  return request({
    url: '/product/productPurchaseStorage/createPurchaseCustomerDic',
    method: 'post',
    data: val
  })
}
export function positionRetentionWarningList (val) {
  return request({
    url: '/product/productPurchaseStorage/positionRetention/WarningList',
    method: 'post',
    data: val
  })
}
export function createPurchaseWarehouseDic (val) {
  return request({
    url: '/product/productPurchaseStorage/createPurchaseWarehouseDic',
    method: 'post',
    data: val
  })
}
export function productGearcreateBatch (val) {
  return request({
    url: '/product/productGear/createBatch',
    method: 'post',
    data: val
  })
}
export function productGearCreate (val) {
  return request({
    url: '/product/productGear/create',
    method: 'post',
    data: val
  })
}
export function productPurchaseReturnedListReturnedOrderStatusDic (val) {
  return request({
    url: '/product/productPurchaseReturned/listReturnedOrderStatusDic',
    method: 'post',
    data: val
  })
}
export function productPurchaseProcesscreatePurchaseProcessDic (val, id) {
  return request({
    url: `/product/productPurchaseProcess/updatePurchaseProcessQuality/${id}`,
    method: 'post',
    data: val
  })
}
export function updatePurchaseProcessTrackingNumber (id, val) {
  return request({
    url: `/product/productPurchaseProcess/updatePurchaseProcessTrackingNumber/${id}`,
    method: 'post',
    data: val
  })
}
export function productPurchaseStoragesearchWarehouseDicsw (val, id) {
  return request({
    url: '/product/productPurchaseStorage/searchWarehouseDic',
    method: 'post',
    data: val
  })
}
export function productPurchaseStoragelist (val, id) {
  return request({
    url: '/product/productPurchaseStorage/list',
    method: 'post',
    data: val
  })
}
export function warehouseLocationImp (val) {
  return request({
    url: '/warehouse/warehouseLocation/imp',
    method: 'post',
    data: val
  })
}
export function warehouseAreaPrintCode (val) {
  return request({
    url: '/warehouse/warehouseArea/printCode',
    method: 'post',
    data: val
  })
}
export function warehousePrintApprove (val) {
  return request({
    url: '/warehouse/warehousePrint/approve',
    method: 'post',
    data: val
  })
}
export function warehousePrintorderInfo (val) {
  return request({
    url: `/warehouse/warehousePrint/orderInfo?invoiceNo=${val}`,
    method: 'get',
    data: val
  })
}
// export function productGearPurchasepriceList (val) {
//   return request({
//     url: `/product/productGearPurchase/priceList/${productGearId}`,
//     method: 'post',
//     data: val
//   })
// }
export function productGearPurchasePrintList (val) {
  return request({
    url: '/product/productGearPurchase/printList',
    method: 'post',
    data: val
  })
}
export function updateProductPurchaseStorageStatus (val, id) {
  return request({
    url: `/product/productPurchaseStorage/updateProductPurchaseStorageStatus/${id}`,
    method: 'post',
    data: val
  })
}
export function productPurchaseStoragesearchWarehouseLocal (id) {
  return request({
    url: `/product/productPurchaseStorage/searchWarehouseLocal/${id}`,
    method: 'post'
    // data: val
  })
}
export function autoProductPurchaseStorageLocationPick (id) {
  return request({
    url: `/product/productPurchaseStorage/autoProductPurchaseStorageLocationPick/${id}`,
    method: 'post'
    // data: val
  })
}
export function productGearPurchaseStorageAutoProductGearPurchaseStorageLocationPick (
  productGearPurchaseStorageId
) {
  return request({
    url: `/product/productGearPurchaseStorage/autoProductGearPurchaseStorageLocationPick/${productGearPurchaseStorageId}}`,
    method: 'post'
    // data: val
  })
}
export function productPurchaseStorageAutoProductPurchaseStorageLocationSave (
  productGearPurchaseStorageId,
  val
) {
  return request({
    url: `/product/productPurchaseStorage/autoProductPurchaseStorageLocationSave/${productGearPurchaseStorageId}`,
    method: 'post',
    data: val
  })
}
export function shopAuthorize (val) {
  return request({
    url: '/express/shop/authorize',
    method: 'post',
    data: val
  })
}
export function afterHandleOrderlist (val) {
  return request({
    url: '/order/afterHandleOrder/list',
    method: 'post',
    data: val
  })
}
export function afterHandleOrderdestruction (val) {
  return request({
    url: '/order/afterHandleOrder/destruction',
    method: 'post',
    data: val
  })
}
export function afterHandleOrderrefusal (val) {
  return request({
    url: '/order/afterHandleOrder/refusal',
    method: 'post',
    data: val
  })
}
export function productPurchaseLinklist (val) {
  return request({
    url: '/product/productPurchaseLink/list',
    method: 'post',
    data: val
  })
}
export function productPurchaseLinkdeleteBatch (val) {
  return request({
    url: '/product/productPurchaseLink/deleteBatch',
    method: 'post',
    data: val
  })
}
export function productPurchaseLinkcreate (val) {
  return request({
    url: '/product/productPurchaseLink/create',
    method: 'post',
    data: val
  })
}
export function printProductPurchaseStorage (val) {
  return request({
    url: `/product/productPurchaseProcess/printProductPurchaseStorage/${val}`,
    method: 'post'
    // data: val
  })
}
export function pickSaleOrderlist (val) {
  return request({
    url: '/order/pickSaleOrder/list',
    method: 'post',
    data: val
  })
}
export function pickSaleOrdergetShopNameList (val) {
  return request({
    url: '/order/pickSaleOrder/getShopNameList',
    method: 'get',
    data: val
  })
}
export function getWarehouseLocationIdList (val) {
  return request({
    url: '/order/pickSaleOrder/getWarehouseLocationIdList',
    method: 'get',
    data: val
  })
}
export function pickSaleOrdergetOrderStatusList (val) {
  return request({
    url: '/order/pickSaleOrder/getOrderStatusList',
    method: 'get',
    data: val
  })
}
export function addPerPickOrder (val) {
  return request({
    url: '/order/pickSaleOrder/addPerPickOrder',
    method: 'post',
    data: val
  })
}
// export function addPerPickOrder (val) {
//   return request({
//     url: '/order/expressNumberFail/togetherHandleOrder',
//     method: 'post',
//     data: val
//   })
// }
export function pickSaleOrderbackOnLinePre (val) {
  return request({
    url: '/order/pickSaleOrder/backOnLinePre',
    method: 'post',
    data: val
  })
}
export function pickSaleOrderBatchPrint (val) {
  return request({
    url: '/order/pickSaleOrder/batchPrint',
    method: 'post',
    data: val
  })
}
export function taskcreat (val) {
  return request({
    url: '/client/productPurchaseProcess/task/creat',
    method: 'post',
    data: val
  })
}
export function removeSubOrder (productPurchaseOrderDetailId) {
  return request({
    url: `/product/productPurchaseOrder/removeSubOrder/${productPurchaseOrderDetailId}`,
    method: 'post'
  })
}
export function prePickOrderlist (val) {
  return request({
    url: '/order/prePickOrder/list',
    method: 'post',
    data: val
  })
}
export function outSaleOrderGetPreCompanyList (val) {
  return request({
    url: '/out/outSaleOrder/getPreCompanyList',
    method: 'get',
    data: val
  })
}
export function outSaleOrdergetPackPersonList (val) {
  return request({
    url: '/out/outSaleOrder/getPickPersonList',
    method: 'get',
    data: val
  })
}
export function getPreOutSaleOrderList (val) {
  return request({
    url: '/out/outSaleOrder/getPreOutSaleOrderList',
    method: 'post',
    data: val
  })
}
export function outSaleOrderbackOnLinePre (val) {
  return request({
    url: '/out/outSaleOrder/backOnLinePre',
    method: 'post',
    data: val
  })
}
export function outSaleOrderbatchPrint (val) {
  return request({
    url: '/out/outSaleOrder/batchPrint',
    method: 'post',
    data: val
  })
}
export function pickSaleOrderBathVirtuallySend (val) {
  return request({
    url: '/order/pickSaleOrder/bathVirtuallySend',
    method: 'post',
    data: val
  })
}
export function pickSaleOrderGetPickPersonList (val) {
  return request({
    url: '/order/pickSaleOrder/getPickPersonList',
    method: 'get',
    data: val
  })
}
export function expressNumberFaillist (val) {
  return request({
    url: '/order/expressNumberFail/list',
    method: 'post',
    data: val
  })
}
export function togetherHandleOrder (val) {
  return request({
    url: '/order/expressNumberFail/togetherHandleOrder',
    method: 'post',
    data: val
  })
}
export function getPrePickOrderDetail (val) {
  return request({
    url: '/order/prePickOrder/getPrePickOrderPrintDetail',
    method: 'post',
    data: val
  })
}
export function sysUserGroupRelationlist (val) {
  return request({
    url: '/config/sysUserGroupRelation/list',
    method: 'post',
    data: val
  })
}
export function warehouseLocationprintCode (val) {
  return request({
    url: '/warehouse/warehouseLocation/printCode',
    method: 'post',
    data: val
  })
}
export function sysUserGroupadd (val) {
  return request({
    url: '/config/sysUserGroup/add',
    method: 'post',
    data: val
  })
}
export function sysUserGrouplist (val) {
  return request({
    url: '/config/sysUserGroup/list',
    method: 'get',
    data: val
  })
}
export function sysUserGroupdelete (val) {
  return request({
    url: '/config/sysUserGroup/delete',
    method: 'post',
    data: val
  })
}
export function sysUserGroupRelationupdate (val) {
  return request({
    url: '/config/sysUserGroupRelation/update',
    method: 'post',
    data: val
  })
}
export function sysUserGroupupdate (val) {
  return request({
    url: '/config/sysUserGroup/update',
    method: 'post',
    data: val
  })
}
export function outSaleOrderList (val) {
  return request({
    url: '/out/outSaleOrder/list',
    method: 'post',
    data: val
  })
}
export function outSaleOrderPack (val) {
  return request({
    url: '/out/outSaleOrder/pack',
    method: 'post',
    data: val
  })
}
export function outSaleOrderDelivery (val) {
  return request({
    url: '/out/outSaleOrder/delivery',
    method: 'post',
    data: val
  })
}
export function outSaleOrderout (val) {
  return request({
    url: '/out/outSaleOrder/out',
    method: 'post',
    data: val
  })
}
export function outSaleOrderGetOutSaleOrderList (val) {
  return request({
    url: '/out/outSaleOrder/getOutSaleOrderList',
    method: 'post',
    data: val
  })
}
export function outSaleOrderGetCompanylist (val) {
  return request({
    url: '/out/outSaleOrder/getCompanyList',
    method: 'get',
    data: val
  })
}
export function procurementAccountcreate (val) {
  return request({
    url: '/procurement/procurementAccount/create',
    method: 'post',
    data: val
  })
}
export function productPurchaseLinktaskcreat (val) {
  return request({
    url: '/product/productPurchaseLink/task/creat',
    method: 'post',
    data: val
  })
}
export function afterDestructionOrderList (val) {
  return request({
    url: '/order/afterDestructionOrder/list',
    method: 'post',
    data: val
  })
}
export function afterDestructionOrdergetBelongCompanyList (val) {
  return request({
    url: '/order/afterDestructionOrder/getBelongCompanyList',
    method: 'get',
    data: val
  })
}
export function afterDestructionOrdergetDataFromList (val) {
  return request({
    url: '/order/afterDestructionOrder/getDataFromList',
    method: 'get',
    data: val
  })
}
export function outSaleOrdergetOutFailOrderList (val) {
  return request({
    url: '/out/outSaleOrder/getOutFailOrderList',
    method: 'post',
    data: val
  })
}
export function outSaleOrdergetFailMsgList (val) {
  return request({
    url: '/out/outSaleOrder/getFailMsgList',
    method: 'get',
    data: val
  })
}
export function afterDestructionOrderdestruction (val) {
  return request({
    url: '/order/afterDestructionOrder/destruction',
    method: 'get',
    data: val
  })
}
export function sysConfigcreateUpdate (val) {
  return request({
    url: '/sysConfig/createUpdate',
    method: 'post',
    data: val
  })
}
export function sysConfigconfigKeyValueMap (val) {
  return request({
    url: `/sysConfig/configKeyValueMap/${val}`,
    method: 'get'
    // data: val
  })
}
export function shopExpressgetTbExpressList (val) {
  return request({
    url: '/express/shopExpress/getTbExpressList',
    method: 'get'
    // data: val
  })
}
export function productpurchaseUpdate (val, productId) {
  return request({
    url: `/product/productMerge/purchaseUpdate/${productId}`,
    method: 'post',
    data: val
  })
}
export function warehousecreate (val) {
  return request({
    url: '/warehouse/warehouse/create',
    method: 'post',
    data: val
  })
}
export function preSaleOrderbackOnLinePre (val) {
  return request({
    url: '/order/preSaleOrder/backOnLinePre',
    method: 'post',
    data: val
  })
}
export function warehousedetail (val) {
  return request({
    url: '/warehouse/warehouse/detail',
    method: 'post',
    data: val
  })
}
export function warehouseShopgetOrderTypeList (val) {
  return request({
    url: '/warehouse/warehouseShop/getOrderTypeList',
    method: 'get',
    data: val
  })
}
export function warehouseShopGetOutOrderTypeList (val) {
  return request({
    url: '/warehouse/warehouseShop/getOutOrderTypeList',
    method: 'get',
    data: val
  })
}
export function warehouseShoplist (val) {
  return request({
    url: '/warehouse/warehouseShop/list',
    method: 'post',
    data: val
  })
}
export function warehouseShopgetWarehouseAddExpressList (val) {
  return request({
    url: '/warehouse/warehouseShop/getWarehouseAddExpressList',
    method: 'post',
    data: val
  })
}
export function warehouseShopcreate (val) {
  return request({
    url: '/warehouse/warehouseShop/create',
    method: 'post',
    data: val
  })
}
export function warehouseShopupdate (val) {
  return request({
    url: '/warehouse/warehouseShop/update',
    method: 'post',
    data: val
  })
}
export function productPurchaseLinkupdate (val) {
  return request({
    url: `/product/productPurchaseLink/update/${val.id}`,
    method: 'post',
    data: { stateUser: val.stateUser }
  })
}

export function getPrePickOrderDetailPrePickOrder (val) {
  return request({
    url: '/order/prePickOrder/getPrePickOrderDetail',
    method: 'post',
    data: val
  })
}
export function prePickOrderBatchPrintExpressOrder (val) {
  return request({
    url: '/order/prePickOrder/batchPrintExpressOrder',
    method: 'post',
    data: val
  })
}
export function prePickOrderSinglePrintExpressOrder (val) {
  return request({
    url: '/order/prePickOrder/singlePrintExpressOrder',
    method: 'post',
    data: val
  })
}
export function productPurchaseReturnedList (val) {
  return request({
    url: '/product/productPurchaseReturned/list',
    method: 'post',
    data: val
  })
}
export function potatoadminLogin (val) {
  return request({
    url: '/gear/gearOpen/potato/adminLogin',
    method: 'post',
    data: val
  })
}
export function productPurchaseReturnedCreatePurchaseReturned (val) {
  return request({
    url: '/product/productPurchaseReturned/createPurchaseReturned',
    method: 'post',
    data: val
  })
}
export function productpurchaseSearch (productId) {
  return request({
    url: `/product/productMerge/purchaseSearch/${productId.productId}`,
    method: 'post'
  })
}
export function productPurchaseReturnedWaybillcode (productPurchaseOrderCode) {
  return request({
    url: `/product/productPurchaseReturned/waybillcode/dic/${productPurchaseOrderCode}`,
    method: 'post'
  })
}
export function waybillcodechangeExpress (productPurchaseOrderCode, expressId) {
  return request({
    url: `/product/productPurchaseReturned/waybillcode/change/${productPurchaseOrderCode}/expressId/${expressId}`,
    method: 'post'
  })
}
export function getShopExpressCodeList (val) {
  return request({
    url: '/order/expressNumberFail/getShopExpressCodeList',
    method: 'post',
    data: val
  })
}
export function expressNumberFailchangeExpress (val) {
  return request({
    url: '/order/expressNumberFail/changeExpress',
    method: 'post',
    data: val
  })
}
export function productPurchaseReturnedApplyPurchaseReturned (val) {
  return request({
    url: '/product/productPurchaseReturned/applyPurchaseReturned',
    method: 'post',
    data: val
  })
}
export function productPurchaseReturnedListWarehouseDic (val) {
  return request({
    url: '/product/productPurchaseReturned/listWarehouseDic',
    method: 'post',
    data: val
  })
}
export function waybillcodelist (val) {
  return request({
    url: '/product/productPurchaseReturned/waybillcode/list',
    method: 'post',
    data: val
  })
}
export function listReturnedWaybillCodeFailMsgDic (val) {
  return request({
    url: '/product/productPurchaseReturned/listReturnedWaybillCodeFailMsgDic',
    method: 'post',
    data: val
  })
}
export function noOperationWarnGetDictDataListByDictTypeName (val) {
  return request({
    url: '/config/noOperationWarn/getNoOperationWarnList',
    method: 'post',
    data: val
  })
}
export function noOperationWarnUpdate (val) {
  return request({
    url: '/config/noOperationWarn/update',
    method: 'post',
    data: val
  })
}
export function warehouseShopDelete (val) {
  return request({
    url: '/warehouse/warehouseShop/delete',
    method: 'post',
    data: val
  })
}
export function sysConfigGetWarehouseAreaList (val) {
  return request({
    url: '/sysConfig/getWarehouseAreaList',
    method: 'get',
    data: val
  })
}
export function productPurchaseReturnedPackPurchaseReturned (val) {
  return request({
    url: '/product/productPurchaseReturned/packPurchaseReturned',
    method: 'post',
    data: val
  })
}
export function productPurchaseReturnedOutPurchaseReturned (val) {
  return request({
    url: '/product/productPurchaseReturned/outPurchaseReturned',
    method: 'post',
    data: val
  })
}
export function productPurchaseReturnedpurchaseReturnedWaybillCode (val) {
  return request({
    url: '/product/productPurchaseReturned/purchaseReturnedWaybillCode',
    method: 'post',
    data: val
  })
}
export function gearOpenlist (val) {
  return request({
    url: '/gear/gearOpen/list',
    method: 'post',
    data: val
  })
}
export function gearOpenCreate (val) {
  return request({
    url: '/gear/gearOpen/create',
    method: 'post',
    data: val
  })
}
export function gearOpenupdate (val) {
  return request({
    url: '/gear/gearOpen/update',
    method: 'post',
    data: val
  })
}
export function gearOpendelete (val) {
  return request({
    url: '/gear/gearOpen/delete',
    method: 'post',
    data: val
  })
}
export function productGearList (val) {
  return request({
    url: '/product/productGear/list',
    method: 'post',
    data: val
  })
}
export function productGearPurchaseCreateBatch (val) {
  return request({
    url: '/product/productGearPurchase/createBatch',
    method: 'post',
    data: val
  })
}
export function expressNumberFailGetFailMsgList (val) {
  return request({
    url: '/order/expressNumberFail/getFailMsgList',
    method: 'get',
    data: val
  })
}
export function inventoryDetailConfirmSubWarehouseLocation (inventoryId, val) {
  return request({
    url: `/inventory/inventoryDetail/confirmSubWarehouseLocation/${inventoryId}`,
    method: 'post',
    data: val
  })
}
export function inventoryMoveOrdercreateSubMoveOrder (inventoryId, val) {
  return request({
    url: `/inventory/inventoryMoveOrder/createSubMoveOrder/${inventoryId}`,
    method: 'post',
    data: val
  })
}
export function productGearPurchaseCreate (val) {
  return request({
    url: '/product/productGearPurchase/create',
    method: 'post',
    data: val
  })
}
export function warehouseLocationdown (val) {
  return request({
    url: '/warehouse/warehouseLocation/down',
    method: 'get',
    data: val
  })
}
export function productGearPurchaseList (val) {
  return request({
    url: '/product/productGearPurchase/list',
    method: 'post',
    data: val
  })
}
export function productGearPurchaseListWarehouseDic (val) {
  return request({
    url: '/product/productGearPurchase/listWarehouseDic',
    method: 'post',
    data: val
  })
}
export function productGearPurchaseStoragesearchWarehouseDic (val) {
  return request({
    url: '/product/productGearPurchaseStorage/searchWarehouseDic',
    method: 'post',
    data: val
  })
}
export function productGearPurchaseUpdate (val) {
  return request({
    url: '/product/productGearPurchase/update',
    method: 'post',
    data: val
  })
}
export function productGearPurchaseComplete (val) {
  return request({
    url: '/product/productGearPurchase/complete',
    method: 'post',
    data: val
  })
}
export function productGearPurchaseStorageList (val) {
  return request({
    url: '/product/productGearPurchaseStorage/list',
    method: 'post',
    data: val
  })
}
export function productGearPurchasepriceList (productGearId) {
  return request({
    url: `/product/productGearPurchase/priceListByProductId/${productGearId}`,
    method: 'post'
  })
}

export function productGearPurchaseStorageUpdateProductGearPurchaseStorageStatus (
  val,
  productGearId
) {
  return request({
    url: `/product/productGearPurchaseStorage/updateProductGearPurchaseStorageStatus/${productGearId}`,
    method: 'post',
    data: val
  })
}
export function productGearPurchaseStoragePrint (productGearPurchaseStorageId) {
  return request({
    url: `/product/productGearPurchaseStorage/print/${productGearPurchaseStorageId}`,
    method: 'post'
  })
}
export function procurementAccountupdateToken (procurementAccountId, val) {
  return request({
    url: `/procurement/procurementAccount/updateToken/${procurementAccountId}`,
    method: 'post',
    data: val
  })
}
export function productPurchaseReturnedPrintPurchaseReturned (
  productPurchaseReturnedId
) {
  return request({
    url: `/product/productPurchaseReturned/printPurchaseReturned/${productPurchaseReturnedId}`,
    method: 'post'
  })
}
export function autoProductGearPurchaseStorageLocationSave (
  productGearPurchaseStorageId
) {
  return request({
    url: `/product/productGearPurchaseStorage/autoProductGearPurchaseStorageLocationSave/${productGearPurchaseStorageId}`,
    method: 'post'
  })
}
export function inventoryCreateSubWarehouseLocation (inventoryId) {
  return request({
    url: `/inventory/inventory/createSubWarehouseLocation/${inventoryId}`,
    method: 'post'
  })
}
export function orderInfoTaskCreat (orderCode) {
  return request({
    url: `/client/productPurchaseProcess/orderInfo/task/creat/${orderCode}`,
    method: 'post'
  })
}
export function accountAddaskcreat (platformId) {
  return request({
    url: `/client/productPurchaseProcess/procurement/accountAdd/task/creat/${platformId}`,
    method: 'post'
  })
}
export function warehousetUserDefault (val) {
  return request({
    url: '/warehouse/warehouse/userDefault',
    method: 'post',
    data: val
  })
}
export function inventoryDetailPrintSubWarehouseLocation (inventoryId) {
  return request({
    url: `/inventory/inventoryDetail/printSubWarehouseLocation/${inventoryId}`,
    method: 'post'
  })
}
export function cancelProductPurchaseStorageStatus (productPurchaseStorageId) {
  return request({
    url: `/product/productPurchaseStorage/cancelProductPurchaseStorageStatus/${productPurchaseStorageId}`,
    method: 'post'
  })
}
export function cancelProductReturnedStorageStatus (productReturnedStorageId) {
  return request({
    url: `/product/productReturnedStorage/cancelProductReturnedStorageStatus/${productReturnedStorageId}`,
    method: 'post'
  })
}
export function cancelProductGearPurchaseStorageStatus (productGearPurchaseStorageId) {
  return request({
    url: `/product/productGearPurchaseStorage/cancelProductGearPurchaseStorageStatus/${productGearPurchaseStorageId}`,
    method: 'post'
  })
}
export function productProductFullInfo (productId) {
  return request({
    url: `/product/productMerge/productFullInfo/${productId}`,
    method: 'post'
  })
}
export function preSaleOrderGetProductIdBySkuId (row) {
  return request({
    url: '/order/preSaleOrder/getProductIdBySkuId',
    method: 'post',
    data: row
  })
}
export function expressNumberFailignoreOrder (row) {
  return request({
    url: '/order/expressNumberFail/ignoreOrder',
    method: 'post',
    data: row
  })
}
export function expressNumberFailprintExpressOrder (row) {
  return request({
    url: '/order/expressNumberFail/printExpressOrder',
    method: 'post',
    data: row
  })
}
export function sysPrintTemplateSetGetSysPrintTemplateSetDetail (row) {
  return request({
    url: '/config/sysPrintTemplateSet/getSysPrintTemplateSetDetail',
    method: 'post',
    data: row
  })
}
export function sysPrintTemplateSetUpdate (row) {
  return request({
    url: '/config/sysPrintTemplateSet/update',
    method: 'post',
    data: row
  })
}
export function sysPrintTemplateSetGetPrintTemplateByOrderId (row) {
  return request({
    url: '/config/sysPrintTemplateSet/getPrintTemplateByOrderId',
    method: 'post',
    data: row
  })
}
export function passSkuOrderAdd (row) {
  return request({
    url: '/order/passSkuOrder/add',
    method: 'post',
    data: row
  })
}
export function passSkuOrderList (row) {
  return request({
    url: '/order/passSkuOrder/list',
    method: 'post',
    data: row
  })
}
export function passSkuOrderupdate (row) {
  return request({
    url: '/order/passSkuOrder/update',
    method: 'post',
    data: row
  })
}
export function passSkuOrderdelete (row) {
  return request({
    url: '/order/passSkuOrder/delete',
    method: 'post',
    data: row
  })
}
export function procurementPayAccountcreate (row) {
  return request({
    url: '/procurement/procurementPayAccount/create',
    method: 'post',
    data: row
  })
}
export function procurementPayAccountlist (row) {
  return request({
    url: '/procurement/procurementPayAccount/list',
    method: 'post',
    data: row
  })
}
export function procurementPayAccountremove (row) {
  return request({
    url: '/procurement/procurementPayAccount/remove',
    method: 'post',
    data: row
  })
}
export function productMergecreateMerge (row) {
  return request({
    url: '/product/productMerge/createMerge',
    method: 'post',
    data: row
  })
}
export function procurementPayAccountupdate (row, procurementPayAccountId) {
  return request({
    url: `/procurement/procurementPayAccount/update/${procurementPayAccountId}`,
    method: 'post',
    data: row
  })
}
export function procurementPayAccountprocurementAccountStatusDic (row) {
  return request({
    url: '/procurement/procurementPayAccount/procurementAccountStatusDic',
    method: 'post',
    data: row
  })
}
export function preSaleOrderbatchApprove (row) {
  return request({
    url: '/order/preSaleOrder/batchApprove',
    method: 'post',
    data: row
  })
}
export function preSaleOrderBatchBackOnLinePre (row) {
  return request({
    url: '/order/preSaleOrder/batchBackOnLinePre',
    method: 'post',
    data: row
  })
}
export function preSaleOrderbatchAdvanceSend (row) {
  return request({
    url: '/order/preSaleOrder/batchAdvanceSend',
    method: 'post',
    data: row
  })
}
export function advanceSendOrderList (row) {
  return request({
    url: '/order/advanceSendOrder/list',
    method: 'post',
    data: row
  })
}
export function advanceSendOrderGetSellerFlagList (row) {
  return request({
    url: '/order/advanceSendOrder/getSellerFlagList',
    method: 'get',
    data: row
  })
}
export function advanceSendOrdergetShopNameList (row) {
  return request({
    url: '/order/advanceSendOrder/getShopNameList',
    method: 'get',
    data: row
  })
}
export function advanceSendOrderGetGearOpenList (row) {
  return request({
    url: '/order/advanceSendOrder/getGearOpenList',
    method: 'get',
    data: row
  })
}
export function getReportGoodSumInfo (row) {
  return request({
    url: '/order/advanceSendOrder/getReportGoodSumInfo',
    method: 'get',
    data: row
  })
}
export function procurementAccountupdateDefault (row) {
  return request({
    url: `/procurement/procurementAccount/updateDefault/${row}`,
    method: 'post',
    data: row
  })
}
export function procurementAccountcancelDefault (row) {
  return request({
    url: `/procurement/procurementAccount/cancelDefault/${row}`,
    method: 'post',
    data: row
  })
}
export function advanceSendOrdershortage (row) {
  return request({
    url: '/order/advanceSendOrder/shortage',
    method: 'post',
    data: row
  })
}
export function advanceSendOrderBathVirtuallySend (row) {
  return request({
    url: '/order/advanceSendOrder/bathVirtuallySend',
    method: 'post',
    data: row
  })
}
export function advanceSendOrdergetReportGoodList (row) {
  return request({
    url: '/order/advanceSendOrder/getReportGoodList',
    method: 'post',
    data: row
  })
}
export function warehousePrintprovideScan (row) {
  return request({
    url: '/warehouse/warehousePrint/provideScan',
    method: 'post',
    data: row
  })
}
export function warehousePrintprovideScanOut (row) {
  return request({
    url: '/warehouse/warehousePrint/provideScanOut',
    method: 'post',
    data: row
  })
}
export function advanceSendOrderskuPurchasePriceList (row) {
  return request({
    url: '/order/advanceSendOrder/skuPurchasePriceList',
    method: 'post',
    data: row
  })
}
export function advanceSendOrderUpdatePurchasePrice (row) {
  return request({
    url: '/order/advanceSendOrder/updatePurchasePrice',
    method: 'post',
    data: row
  })
}
export function advanceSendOrderbathPrint (row) {
  return request({
    url: '/order/advanceSendOrder/bathPrint',
    method: 'post',
    data: row
  })
}
export function updateShopByOrderTitle (row) {
  return request({
    url: '/newyitao/shop/updateShopByOrderTitle',
    method: 'post',
    data: row
  })
}
export function advanceSendOrderBackOnLinePre (row) {
  return request({
    url: '/order/advanceSendOrder/backOnLinePre',
    method: 'post',
    data: row
  })
}
export function productReturnedStoragecreatCode (row) {
  return request({
    url: '/product/productReturnedStorage/creatCode',
    method: 'post',
    data: row
  })
}
// export function productPurchaseProcessprintProductPurchaseStorage (purchaseProcessId) {
//   return request({
//     url: `/product/productPurchaseProcess/printProductPurchaseStorage/${purchaseProcessId}`,
//     method: 'post'
//   })
// }
export function productPurchaseProcessprintProductWithStorageLocation (val, purchaseProcessId) {
  return request({
    url: `/product/productPurchaseProcess/printProductWithStorageLocation/${purchaseProcessId}`,
    method: 'post',
    data: val
  })
}
export function productPurchaseProcesswarehouseLocationCanUseList (purchaseProcessId, val) {
  return request({
    url: `/product/productPurchaseProcess/warehouseLocationCanUseList/${purchaseProcessId}`,
    method: 'post',
    data: val
  })
}
export function printProductWithLocationAndRefuseHandle (purchaseProcessId, val) {
  return request({
    url: `/product/productPurchaseProcess/printProductWithLocationAndRefuseHandle/${purchaseProcessId}`,
    method: 'post',
    data: val
  })
}
// 导出类型
export function getProductTypeList (val) {
  return request({
    url: '/template/templateInfo/getProductTypeList',
    method: 'get',
    data: val
  })
}
// 筛选时间根据
export function getSelectTimeConditionList (val) {
  return request({
    url: '/template/templateInfo/getSelectTimeConditionList',
    method: 'get',
    data: val
  })
}
// 导出模板拉列表
export function getTemplateExportList (val) {
  return request({
    url: '/template/templateInfo/getTemplateExportList',
    method: 'get',
    data: val
  })
}
// 导出模板拉列表
export function templateInfoList (val) {
  return request({
    url: '/template/templateInfo/list',
    method: 'post',
    data: val
  })
}
// 导出模板拉列表
export function templateInfoDownload (val) {
  return request({
    url: `/template/templateInfo/download/${val}`,
    method: 'get',
    data: val
  })
}
// 导出模板拉列表
export function templateInfoGenerateExcel (val) {
  return request({
    url: '/template/templateInfo/generateExcel',
    method: 'post',
    data: val
  })
}

export function templatelist (val) {
  return request({
    url: '/template/template/list',
    method: 'post',
    data: val
  })
}
export function getTemplateModuleList (val) {
  return request({
    url: '/template/template/getTemplateModuleList',
    method: 'get',
    data: val
  })
}
export function getTemplateUpdateDetail (val) {
  return request({
    url: '/template/template/getTemplateUpdateDetail',
    method: 'post',
    data: val
  })
}
export function templatecreate (val) {
  return request({
    url: '/template/template/create',
    method: 'post',
    data: val
  })
}
export function templateupdate (val) {
  return request({
    url: '/template/template/update',
    method: 'post',
    data: val
  })
}
export function templatedelete (val) {
  return request({
    url: '/template/template/delete',
    method: 'post',
    data: val
  })
}
export function listReturnedMarkInfoDic (val) {
  return request({
    url: '/product/productPurchaseReturned/listReturnedMarkInfoDic',
    method: 'post',
    data: val
  })
}
export function returnedMarkInfomake (val, id) {
  return request({
    url: `/product/productPurchaseReturned/returnedMarkInfo/make/${id}`,
    method: 'post',
    data: val
  })
}
export function returnedHandleCannot (id) {
  return request({
    url: `/product/productPurchaseReturned/returnedHandleCannot/${id}`,
    method: 'post'
  })
}
export function returnedHandleCannotVerifycancel (id) {
  return request({
    url: `/product/productPurchaseReturned/returnedHandleCannotVerify/cancel/${id}`,
    method: 'post'
  })
}
export function returnedHandleCannotVerifypass (id) {
  return request({
    url: `/product/productPurchaseReturned/returnedHandleCannotVerify/pass/${id}`,
    method: 'post'
  })
}
